export default {
  base: [
    {
      ref: 'gain',
      nodeData: {
        name: '增益器',
        index: 0,
        dllFile: 'Model/libGain.so',
        fctName: 'gain',
        params: [
          { name: "k", value: 1, des: '增益系数' }
        ],
        endpoints: [
          {
            id: "in-0",
            orientation: [-1, 0],
            pos: [0, 0.5],
            des: 'yi',
          },
          {
            id: "out-0",
            orientation: [1, 0],
            pos: [0, 0.5],
            des: 'yo',
          }
        ],
      }
    },
    {
      ref: 'sum',
      nodeData: {
        name: '求和',
        index: 1,
        dllFile: 'Model/libSum.so',
        fctName: 'add',
        params: [],
        endpoints: [
          {
            id: "in-0",
            orientation: [-1, 0],
            pos: [0, 0.2],
            des: 'yi1',
          },
          {
            id: "in-1",
            orientation: [-1, 0],
            pos: [0, 0.7],
            des: 'yi2',
          },
          {
            id: "out-0",
            orientation: [1, 0],
            pos: [0, 0.5],
            des: 'yo',
          }
        ],
      }
    },
    {
      ref: 'mult',
      nodeData: {
        name: '乘法器',
        index: 2,
        dllFile: 'Model/libMult.so',
        fctName: 'mult',
        params: [],
        endpoints: [
          {
            id: "in-0",
            orientation: [-1, 0],
            pos: [0, 0.2],
            des: 'yi1',
          },
          {
            id: "in-1",
            orientation: [-1, 0],
            pos: [0, 0.7],
            des: 'yi2',
          },
          {
            id: "out-0",
            orientation: [1, 0],
            pos: [0, 0.5],
            des: 'yo',
          }
        ],
      },
    },
    {
      ref: 'sine',
      nodeData: {
        name: '正弦波',
        index: 3,
        dllFile: 'Model/libSine.so',
        fctName: 'sineWave',
        params: [
          { name: "phase", value: 0, des: '初相位(单位:rad)'},
          { name: "freq", value: 1, des: '角频率(单位:rad/sec)'},
          { name: "amp", value: 1, des: '振幅'},
          { name: "bias", value: 0, des: '偏移量'}
        ],
        endpoints: [
          {
            id: "out-0",
            orientation: [1, 0],
            pos: [0, 0.5],
            des: 'yo',
          }
        ],
      },
    },
    {
      ref: 'cons',
      nodeData: {
        name: '常量',
        index: 4,
        dllFile: 'Model/libCons.so',
        fctName: 'constant',
        params: [
          { name: "C", value: 0, des: '常量'}
        ],
        endpoints: [
          {
            id: "out-0",
            orientation: [1, 0],
            pos: [0, 0.5],
            des: 'yo',
          }
        ],
      },
    },
    {
      ref: 'disp',
      nodeData: {
        name: '数据显示',
        index: 5,
        dllFile: 'Model/libDisp.so',
        fctName: 'disp',
        params: [
          {name: "out", value: 0, des: '输出'}
        ],
        endpoints: [
          {
            id: "in-0",
            orientation: [-1, 0],
            pos: [0, 0.5],
            des: 'yi',
          }
        ],
      },
    },
    {
      ref: 'delay',
      nodeData: {
        name: '延时标记',
        index: 6,
        dllFile: 'Model/libDelay.so',
        fctName: 'delay',
        params: [
          {name: "init", value: 0, des: '初始值'}
        ],
        endpoints: [
          {
            id: "in-0",
            orientation: [-1, 0],
            pos: [0, 0.5],
            des: 'yi',
          },
          {
            id: "out-0",
            orientation: [1, 0],
            pos: [0, 0.5],
            des: 'yo',
          }
        ],
      },
    }
  ],
}